import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入组件 ant-design-vue
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import * as Icons from '@ant-design/icons-vue';
//设置请求是的路径
import axios from "axios";
axios.defaults.baseURL=process.env.VUE_APP_SERVER;

const app=createApp(App);
app.use(store).use(router).use(Antd).mount('#app')

//全局使用图标

const icons:any=Icons;

for (const i in icons){

    app.component(i,icons[i]);
}
console.info('环境',process.env.NODE_ENV)
console.info("服务端",process.env.VUE_APP_SERVER)
